package com.sss.hloster0406;

public class Literature extends Student {
	int speech;// 演讲成绩
	int works;// 作品成绩

	public Literature() {
		super();
	}
	
	public Literature(long stuNum, String stuName, int stuSex, int stuAge, int midExam, int finalExam,
			int speech, int works) {
		super(stuNum, stuName, stuSex, stuAge, midExam, finalExam);
		this.speech = speech;
		this.works = works;
	}

	public float Totalscore() {// 计算总成绩
		return (float) (speech * 0.35 + this.works * 0.35 + this.midExam * 0.15 + this.finalExam * 0.15);
		 
		
	}
}
